<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<link rel="stylesheet" href="./css/header.css">
<link rel="stylesheet" href="./css/mine.css">
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<script src="./js/vue.min.js"></script>
<script src="https://unpkg.com/element-ui/lib/index.js"></script>

<body>
<div class="app">
    <header>
        <div class="projectName">汽车轴承寿命预测平台</div>
        <el-input placeholder="搜索" clearable style="width: 10vw;margin: 10px"></el-input>
        <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
            <el-menu-item index="1"><a href="uindex.html">首页</a></el-menu-item>
            <el-menu-item index="2"><a href="shopping.html">商城</a></el-menu-item>
            <el-menu-item index="3"><a href="order.html">购物车</a></el-menu-item>
            <el-menu-item index="4"><a href="mine.jsp" target="_blank">我的</a></el-menu-item>
        </el-menu>
    </header>
    <div class="nav">
        <div class="information">
            <img src="./img/我的.png" alt="">
            <div>
                <h2>  姓名:${user.username}</h2>
                <h4>手机号:${user.phoneNumber}</h4>
            </div>
        </div>
    </div>
    <div class="function">
        <div class="order" style="border-top: 2px solid #eee;" onclick="open1()">
            <img src="./img/订单.png" alt=""><span>订单管理</span>
        </div>
        <div class="address">
            <img src="./img/地址.png" alt=""><span>地址管理</span>
        </div>
        <div class="setting">
            <img src="./img/设置.png" alt=""><span>设置</span>
        </div>
    </div>
</div>
</body>
<script>
    function open1(){
        window.location.href="MySubmitOrderServlet"
    }
</script>
<script>
    new Vue({
        el: '.app',
        data() {
            return {
                activeIndex: '1',
                activeIndex2: '1'
            }
        }, methods: {
            handleSelect(key, keyPath) {
                console.log(key, keyPath);
            }
        }
    })
</script>

</html>